package com.gege.homework1;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author gechenpeng
 * @date 2021-04-16
 */
@Data
@AllArgsConstructor
public class Student implements People {

    private String name;

    @Override
    public void eat() {
        System.out.println("我是: " + name + ", 我正在吃饭...");
    }

    @Override
    public void sleepo() {
        System.out.println("我是: " + name + ", 我正在睡觉...");
        try {
            Thread.sleep(5000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
